package com.jmlee.pojo;

import java.util.List;

/**
 * @Description 通用分页结果类
 * @Author jmLee
 * @Date 2021/2/21 19:49
 * @Version 1.0
 */
public class CommonPage<T> {

    private Integer currentPage;   // 当前页码
    private Integer totalPage; // 总页数

    private Long count;     // 总记录数
    private List<T> data;

    public CommonPage() {
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }


    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
